@echo off
title 启动Nacos/Redis/RabbitMQ服务
color 0a

:: =============== 配置区域 ===============
:: 请修改以下路径为你本地的实际安装路径

set NACOS_PATH="D:\nacos\nacos\bin\startup.cmd" -m standalone
set REDIS_PATH="D:\redis\redis1\redis1\redis-server.exe"
set RABBITMQ_SERVICE_NAME="RabbitMQ"

:: =============== 执行区域 ===============

echo 正在启动服务...
echo.

:: 启动Nacos
echo [1/3] 正在启动Nacos...
start "Nacos Server" cmd /k %NACOS_PATH%
timeout /t 5 >nul

:: 启动Redis
echo [2/3] 正在启动Redis...
start "Redis Server" cmd /k %REDIS_PATH%
timeout /t 3 >nul

:: 启动RabbitMQ
echo [3/3] 正在启动RabbitMQ...
net start "%RABBITMQ_SERVICE_NAME%"

echo.
echo 所有服务已启动完成!
pause